<!DOCTYPE html>
<html>
<head>
    <title>QlSolution</title>

    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>qlsolution/css/style.css">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>qlsolution/css/jquery.ui.all.css">

    <script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery-1.6.4.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery.json-2.2.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery.tmpl.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery.iframe-transport.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery.fileupload.js"></script>
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/jquery.fileupload-ui.js"></script>
	
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/ckeditor/ckeditor.js"></script>
	
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/dev-before.js"></script>
	<script type="text/javascript">
    	Qlsolution.baseUrl = '<?php echo base_url();?>';
    </script>
    <!-- load modules -->
	<?php
		foreach($modules as $val){
			echo '<script type="text/javascript" src="'.base_url().'qlsolution/app/'.$val.'/config.js"></script>';
		}
	?>
    <!-- end load modules -->

    <!-- load widgets -->
	<?php
		foreach($widgets as $val){
			echo '<script type="text/javascript" src="'.base_url().'qlsolution/js/widgets/'.$val.'"></script>';
		}
	?>
    <!-- end load widgets -->
	
	<!-- set user data -->
	<script type="text/javascript">
	<?php
		foreach($userData as $key => $val){
	?>
			Qlsolution.userData['<?php echo $key; ?>'] = '<?php echo $val; ?>';
	<?php
		}
	?>
	</script>
	<!-- end set user data -->

</head>
<body>
	<header class="main">
		<p><a href="index.php/login/logoutUser" class="btnLogout">logout</a></p>
		<nav></nav>
	</header>
	<section class="main">
		<span id="loading">Loading</span>
		<div class="content"></div>
	</section>
	<footer class="main">
		<div class="content">
			<p>QlSolution v1.0</p>
			<p>Copyright 2011 &copy; - <a href="http://www.qlpage.com">www.qlpage.com</a> by Adam Zakrzewski</p>
		</div>
	</footer>
	
	<script type="text/javascript" src="<?php echo base_url();?>qlsolution/js/dev-after.js"></script>
</body>
</html>